#ifndef _STORAGE_H_
#define _STORAGE_H_

#define _sector_size_ 512           //扇区偏移  512扇区擦除


extern void write_storage(unsigned int data addr,unsigned char data  dat);
extern char read_storage(unsigned int data addr);
extern void iap_idle();
extern void before_update(unsigned int data addr,unsigned char data dat_size);
extern void factory_reset();

#endif